/**
 * 定义约定式路由
 */
const routers = [
    {
        path: "/user",
        component: '../layouts/UserLayout',
        routes:[
            { path: "/user", redirect: "/user/login"},
            { path: '/user/login', component: './User/Login', title: '登录' },
        ]
    },
    {
        path: '/login',
        component: '../layouts/UserLayout',
        routes: [
          { path: '/login', component: './User/Login', title: '登录' },
        ],
    },
    {
      path: '/',
      component: '../layouts/BasicLayout',
      routes: [
        { path: '/', redirect: '/dashboard' },
        { path: '/dashboard', component: './Dashboard/index', title: '首页' },
        { path: '/404', component: './Page404', title: '找不到网页' },
        { path: '/403', component: './Page403', title: '权限受限' },
        { path:'/higherComponent', component:'./HigherComponent', title: '高阶组件应用'},
      ]
    },



];


module.exports = routers

